﻿using MiniFox.Components;
using MiniFox.Infrastructure;
using Sys.Core.Models.Dto;
using Sys.Core.Models.Queries;
using Sys.Core.Models.VO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sys.Core
{
    [AutoRegister]
    public interface IDictionaryService
    {
        DictionaryGroupVo Item(string appId, string group);
        ResultObject<IEnumerable<DictionaryGroupVo>> Query(string appId, PagedQueryObject<DictionaryQuery> dictionaryQuery);
        void Remove(string appId, string[] groups);
        DictionaryGroupVo Create(string appId, DictionaryGroupDto dto);
        DictionaryGroupVo Update(string appId, DictionaryGroupDto dto);
        DictionaryGroupVo ToggleItem(string appId, string group, string val);
    }
}
